<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$content_info.title} - {$channel_info.name} - {$config.site_name}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="{$content_info.keywords|escape:html}" />
<meta name="description" content="{$content_info.description|escape:html}" />
<link rel="stylesheet" href="templates/{$config.site_template}/style.css" />
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
{include file="header.html"}
<div id="middle" class="c">
	<div id="main2">
            <div class="here">{$here}</div>
		<div class="box c">
		{if $content_info.password}
<script type="text/javascript">
function get_content_data(content_id){
	var password=$("#password_"+content_id).val();
	if($.trim(password)==''){
		alert('{$language.content_password_is_empty}');return;
	}
	$.ajax({
		type:"GET",
		url:"content.php?action=get_content&content_id="+content_id+"&password="+password+"&r="+Math.random(),
		dataType:"text",
		success:function(content){
			if (content=='ERROR'){
				alert('{$language.content_password_is_error}');return;
			}
			$("#content_"+content_id).html(arguments[0]);
	}});
}
</script>
	    <div id="content_{$content_info.id}">
		<br>
		<br>
		<div  style="font-size:14px;text-align:center">
			<table cellspacing="5" cellpadding="5">
			<tr>
			<td>{$language.content_please_put_password}</td>
			<td><input id="password_{$content_info.id}" type="password" class="input" /></td>
			<td><input  onclick="get_content_data({$content_info.id})" type="submit" value="{$language.submit}" class="button" /></td>
			</tr>
			</table>
		 </div>
		<br>
		<br>
		&nbsp;
	    </div>
   {else}
			{$content}
	 {/if}
		</div>
	</div>
	<div id="side">
		{include file="part_category.html"}
	</div>
	<div class="clearleft"></div>
</div>
{include file="footer.html"}
</body>
</html>
